package com.hyl.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Past;
import java.util.Date;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2023/5/10 11:13
 **/
@Data
public class Employee {
	private String name;
	private String empNo;
	private String departName;

	@Past(message = "必须是一个过去时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;
}
